package com.supergzt.entity.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BaseEntity implements Serializable {
	@Serial
	private static final long serialVersionUID = 1L;
	@TableField(fill = FieldFill.INSERT)
	private String createdBy;
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createdTime;
	@TableField(fill = FieldFill.UPDATE)
	private String updatedBy;
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updatedTime;
	@TableLogic(value = "0",delval = "NULL")
	private Integer isDeleted;
}
